<% cache([reply, @topic, "raw:#{@show_raw}"]) do %>
    <%
      floor = reply_counter + 1
    %>
    <div class="reply<%= ' popular' if reply.popular? %><%= ' reply-system' if reply.system_event? %><%= ' reply-deleted' if reply.deleted? %>" data-id="<%= reply.id %>" id="reply<%= floor %>">
      <% if reply.deleted? and !@show_raw %>
          <div class="deleted text-center"><%= floor %><%= t("common.floor") %> <%= t("common.deleted") %></div>

           <% elsif reply.system_event? %>
             <%= render 'replies/system_event', reply: reply %>

      <% else %>
          <div class="avatar"><%= user_avatar_tag(reply.user, :normal) %></div>
          <div class="infos">
            <div class="info">
        <span class="name">
          <%= user_name_tag(reply.user) %>
        </span> ·
        <span class="time">
          <a class="reply-floor" href="#reply<%= floor %>">#<%= floor %></a> · <%= timeago(reply.created_at) %>
        </span>
        <span class="opts pull-right">
          <% if !reply.deleted? %>
            <span class="hideable">
            <%= link_to('', edit_topic_reply_path(@topic, reply), class: "edit fa fa-pencil", 'data-uid' => reply.user_id, title: "修改回帖") %>
                  <%= link_to('', "#", 'data-floor' => floor, 'data-login' => reply.user_login,
                              title: t("topics.reply_this_floor"), class: "btn-reply fa fa-mail-reply")
                  %>
            </span>
            <%= likeable_tag(reply, cache: true) %>
          <% end %>
        </span>
            </div>
            <div class="markdown<%= ' deleted' if reply.deleted? %>">
              <%= raw reply.body_html %>
            </div>
          </div>
      <% end %>
    </div>
<% end %>
